home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / telecomm / misc / xprkermit.2.lha / ckxker.mak < prev    next >
Makefile  |  1994-11-06  |  2KB  |  90 lines

  1. # CKXKER.MAK, Version 5A(189), Tue Feb 12 23:30:00 1994
  2. #
  3. # This is a makefile for XPR C Kermit using Amiga Aztec C V5.n.  The lint
  4. # line is for Gimpel FlexeLint, a commercial product.
  5. #
  6. # Some general notes for anyone attempting a build from source.  First,
  7. # the required files are not all in this archive.  Any file whose name
  8. # begins with "ck[cuw]" comes from the Kermit archive at Columbia
  9. # University, reachable most easily by anonymous FTP to
  10. # ftp.cc.columbia.edu.  Second, I have a precompiled version of the
  11. # Manx "functions.h" file called "functions.pre", which gets included
  12. # by this Makefile.
  13. #
  14. # -wo in CFLAGS makes pointer-int conversions a warning instead of an error,
  15. # and is needed if you use prototypes for the Kermit functions.  In
  16. # particular, the last argument of debug() is specified as an int, but
  17. # actual calls often put a pointer there.
  18. # The optimization is set to so, which turns on full optimization.
  19.  
  20. # The DYNAMIC #define causes C Kermit's send and
  21. # receive buffers to be allocated at run time, and is recommended.
  22. # If DYNAMIC is used, small model can also be used.
  23. #
  24.  
  25. CC = cc
  26.  
  27. # For the first XPR release, turn off nearly everything
  28.  
  29. OPTS = -DAMIGA -DDYNAMIC -DCK_ANSILIBS -DCK_ANSIC -DNODIAL -DNODEBUG \
  30.    -DNOTLOG -DNOHELP -DNOXMT -DNOSCRIPT -DNOCMDL -DNOSPL -DNOICP \
  31.    -DNOCSETS -DNOSERVER -DNOMSEND
  32.  
  33. OTHER = -wo -so
  34.  
  35. CFLAGS = $(OPTS) $(OTHER) -hi ckcdeb.pre
  36.  
  37. LFLAGS =
  38.  
  39. #
  40. #  All the object files needed to compile C Kermit.
  41. #
  42.  
  43. OBJS = libstart.o libsup.o ckxmai.o \
  44.          ckcpro.o ckcfns.o ckcfn2.o ckcfn3.o \
  45.          ckxtio.o ckxfio.o ckxtim.o
  46.  
  47. #
  48. # The corresponding sources, used mainly to run lint.
  49. #
  50.  
  51. SRCS = ckxmai.c \
  52.          ckcpro.c ckcfns.c ckcfn2.c ckcfn3.c ckuusx.c \
  53.          ckxtio.c ckxfio.c ckxtim.c
  54.  
  55. xprkermit.library:    $(OBJS)
  56.     ln $(LFLAGS) -o xprkermit.library $(OBJS) -lm -lc
  57.  
  58. ckcpro.o: ckcpro.w wart
  59.     wart ckcpro.w ckcpro.c
  60.     cc $(CFLAGS) -o ckcpro.o ckcpro.c
  61.  
  62. wart: ckwart.o
  63.     ln -o wart ckwart.o -lc
  64.  
  65. lint: $(SRCS)
  66.     lint $(OPTS) $(SRCS)
  67.  
  68. $(OBJS): ckcdeb.pre
  69.  
  70. #
  71. # Special rules for the Amiga-specific files
  72. #
  73.  
  74. libsup.o:    libsup.c version.h
  75.     cc $(OPTS) $(OTHER) -hi functions.pre libsup.c
  76.  
  77. ckcdeb.pre:    ckcdeb.h
  78.     cc $(OPTS) -ho ckcdeb.pre ckcdeb.h
  79.  
  80. #
  81. # Create the distribution archive
  82. #
  83.  
  84. xprkermit.lha:
  85.     lha -x -a -m a xprkermit ckxker.doc ckxmai.c ckxfio.c ckxtio.c \
  86.     ckxtim.c ckxker.h ckxker.mak libsup.c libstart.asm version.h \
  87.     xprkermit.library
  88.     
  89.